import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listDriver(query) {
  return request({
    url: '/driverassignment/driver/all',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getDriver(id) {
  return request({
    url: '/driverassignment/driver/getOne/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addDriver(waybill_id,driver_id) {
  return request({
    url: '/driverassignment/driver/adddriver/'+waybill_id+"/"+driver_id,
    method: 'post',

  })
}

// 修改【请填写功能名称】
export function updateDriver(id,waybill_id,driver_id) {
  return request({
    url: '/driverassignment/driver/update/'+id+"/"+waybill_id+"/"+driver_id,
    method: 'post',

  })
}

// 删除【请填写功能名称】
export function delDriver(id) {
  return request({
    url: '/driverassignment/driver/delete/' + id,
    method: 'delete'
  })
}
